﻿using System.Web.Mvc;
using Yonkly.Models;

namespace Yonkly.Views.User
{
    public partial class Home : ViewPage <BaseViewData>
    {

        public bool CanUpdate()
        {
            if (ViewData.Model.IsAuthenticated && ViewData.Model.CurrentUser.UserId == ViewData.Model.LoggedInUser.UserId)
            {
                //displaying logged in user so show the update screen
                return true;
            }
            return false;
        }
    }
}
